package hzjbbis.commons.oracle;

import java.sql.Connection;
import java.sql.SQLException;

import hzjbbis.framework.value.OracleTypeValue;

public class Enterprise extends OracleTypeValue {
	private String _eid;

	private String _name;

	public Enterprise(String eid, String name) {
		_eid = eid;
		_name = name;
	}

	public String getTypeName() {
		return "TYPE_ENTERPRISE";
	}

	public Object getTypeObject(Connection conn) throws SQLException {
		Object[] objs = new Object[2];

		objs[0] = _eid;
		objs[1] = _name;

		return super.toSTRUCT(getTypeName(), objs, conn);
	}

}
